package com.project.mapper.statisticsMapper;

import com.project.bean.SaleStatisticsBean;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;
import java.util.List;

/**
 * 销售统计mapper
 */
public interface ISaleStatisticsMapper {
    /**
     * 动态查询销售统计
     * @param factory 厂商名称
     * @param startDate 起始日期
     * @param endDate 结束日期
     * @return 销售统计集合
     */
    public List<SaleStatisticsBean> findByItem(@Param("factory") String factory,
                                               @Param("startDate") LocalDate startDate,
                                               @Param("endDate") LocalDate endDate);

}
